package com.milo.controller;

import com.milo.service.ILoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author milogenius
 * @date 2020-04-21 15:32
 */
@RestController
@RequestMapping("milo")
public class LoginController {

    @Autowired
    private ILoginService iloginService;
    @GetMapping("login.do")
    public Object login(){
        List<Map<String, Object>> userInfo = iloginService.findUserInfo();
        return userInfo;
    }
}
